Product flavors
1 | android { |
Build Type + Product Flavor = Build Variant
- pro - debug
- pro - release
- free - debug
- free - release
Sourcesets and Dependencies
- android.sourceSets.pro
Locationsrc/pro/
- android.sourceSets.androidTestPro
Locationsrc/androidTestPro/
- android.sourceSets.proDebug
Locationsrc/proDebug/
- android.sourceSets.proRelease
Locationsrc/proRelease/
- android.sourceSets.androidTestPro
Locationsrc/androidTestPro/
Building and Tasks
- assemble<Variant Name>
- assemble<Build Type Name>
assemble<Product Flavor Name>
Build single variant
assembleProDebug
Build all given Build Type
proDebug
freeDebug
assembleDebug
Build all given flavor
proRelease
proDebug
assemblePro
Build all variants
assemble
dependencies {
androidTestProCompile "..."
}